package com.xunlai.infra.permission.business.converter;

import com.xunlai.infra.permission.business.dao.entity.AdPicture;
import com.xunlai.infra.permission.business.vo.ad.AdPictureCreateVo;
import com.xunlai.infra.permission.business.vo.ad.AdPictureListVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 9/25/23 9:32 PM
 */
@Mapper
public interface AdPictureConverter {

    AdPictureConverter INSTANCE = Mappers.getMapper(AdPictureConverter.class);

    AdPicture convertCreateVo2Entity(AdPictureCreateVo adPictureCreateVo);

    AdPictureListVo convertEntity2ListVo(AdPicture adPicture);

}
